using System;
using L=Science.Physics.GeneralPhysics;

namespace Serway.Chapter22
{
	/// <summary>
	/// Example05: The Carnot Efficiency
	/// The highest theoretical efficiency of a certain engine
	/// is 30.0%. If this engine uses the atmosphere, which
	/// has a temperature of 300 K, as its cold reservoir, what
	/// is the temperature of its hot reservoir?
	/// T_h = 429 K
	/// </summary>
	public class Example05
	{
		public Example05()
		{
		}
		private string result;
		public string Result
		{
			get{return result;}
		}
		public void Compute()
		{
			L.Temperature Ti = new L.Temperature();
			L.Temperature Tf = new L.Temperature();
			Tf.K = 300.0;
			double e = 0.3;
			Ti.K = Tf.K/(1.0-e);
			result+=Convert.ToString(Ti.K)+"\r\n";          
		}
	}
}
